from app.web import abstract

class Action(abstract.Action):
    
    def get(self):
        
        wish_ids = self.request.get('wish_id')
        wish_id = abstract.utils.ids2id(wish_ids)
        
        wish = abstract.db.wishById(wish_id)

        if wish.link == None or wish.link == "":
            return
        
        self.redirect(wish.link)